/**
 * @使用包含指针的结构
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>

int main() {
	struct intptrs {
		int *p1;
		int *p2;
	};

	struct intptrs pointers;
	int i1 = 100, i2;
		
	pointers.p1 = &i1;
	pointers.p2 = &i2;
	*(pointers.p2) = -97;

	printf("i1 = %d, *pointers.p1 = %d\n", i1, *pointers.p1);
	printf("i2 = %d, *pointers.p2 = %d\n", i2, *pointers.p2);

	return 0;
}
